import axios from 'axios'

export const IncomeWorkAmountService = class IncomeWorkAmountService {
    static incomeWorkAmountService = null
    requestUrl = 'http://localhost/incomeWorkAmount'

    static getInstance(){
        if(this.incomeWorkAmountService == null){
            this.incomeWorkAmountService = new IncomeWorkAmountService()
        }
        return this.incomeWorkAmountService
    }
    
    // 用pid查询所有数据
    selectList(params){
        return axios.get(`${this.requestUrl}/${params}`)
    }

    
}